﻿<common:LayoutAwarePage
    x:Name="pageRoot"
    x:Class="InventoryManagementSystem.SettingsPage"
    DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:InventoryManagementSystem"
    xmlns:common="using:InventoryManagementSystem.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Style="{StaticResource LayoutRootStyle}">
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="backButton" Click="GoBack" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
            <TextBlock x:Name="pageTitle" Grid.Column="1" Text="设置" Style="{StaticResource PageHeaderTextStyle}"/>
            <StackPanel Grid.Column="2" Orientation="Horizontal" Margin="0, 0, 0, 20" HorizontalAlignment="Right" VerticalAlignment="Bottom">
                <Button BorderThickness="0">
                    <StackPanel>
                        <Path  Stretch="Uniform" Fill="#FFFFFFFF" Width="64" Height="64" Data="M34.040939,32.487999C34.040939,32.487999,48.337685,35.892958,49.699997,49.509998L0,49.509998C0,49.509998,4.0869508,34.533576,16.341564,33.170291L19.660397,47.382327 22.099134,47.361846 24.873383,40.086325 22.283998,35.595997 27.458,35.595997 24.976557,40.200572 28.141075,47.311104 30.043301,47.295128z M47.479897,4.5168266C46.270863,4.5168266,45.289436,5.4985542,45.289436,6.7067738L45.289436,11.039976 40.78931,11.039976C39.577377,11.039976 38.595852,12.024452 38.595852,13.230124 38.595852,14.437094 39.577377,15.418869 40.78931,15.418869L45.289436,15.418869 45.289436,19.670064C45.289436,20.879734 46.270863,21.85751 47.479897,21.85751 48.686329,21.85751 49.667755,20.879734 49.667755,19.670064L49.667755,15.418869 53.752567,15.418869C54.9589,15.418869 55.937828,14.437094 55.937828,13.230124 55.937828,12.024452 54.9589,11.039976 53.752567,11.039976L49.667755,11.039976 49.667755,6.7067738C49.667755,5.4985542,48.686329,4.5168266,47.479897,4.5168266z M24.505455,3.4349995C27.075766,3.4349995 29.471275,4.153862 31.528282,5.3829517 30.509779,7.5899277 29.923777,10.041708 29.923777,12.638044 29.923777,17.678222 32.082584,22.195012 35.497997,25.335635 32.996387,28.689754 29.010973,30.872001 24.505455,30.872001 16.928925,30.872001 10.787,24.72875 10.787,17.152235 10.787,9.5756187 16.928925,3.4349995 24.505455,3.4349995z M47.230862,0C50.605629,0 53.980072,1.2877159 56.554344,3.8631535 61.705887,9.0141258 61.705887,17.362821 56.554344,22.513794 51.405804,27.662066 43.056572,27.662066 37.905434,22.513794 32.754189,17.362821 32.754189,9.0141258 37.905434,3.8631535 40.481003,1.2877159 43.856094,0 47.230862,0z"/>
                        <TextBlock TextAlignment="Center">新建用户</TextBlock>
                    </StackPanel>
                </Button>
                <Grid Width="50"/>
            </StackPanel>
        </Grid>

        <Grid Grid.Row="1" Margin="120, 0, 120, 50">
            <StackPanel Orientation="Horizontal">
                <StackPanel Width="400">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="{Binding}"></Image>
                        <StackPanel>
                            <TextBlock FontSize="32"></TextBlock>
                            <TextBlock FontSize="24"></TextBlock>
                        </StackPanel>
                    </StackPanel>
                    <CheckBox Content="销售" RenderTransformOrigin="0,0">
                        <CheckBox.RenderTransform>
                            <CompositeTransform ScaleX="3" ScaleY="3"/>
                        </CheckBox.RenderTransform>
                    </CheckBox>
                    <CheckBox Content="进货" RenderTransformOrigin="0,0">
                        <CheckBox.RenderTransform>
                            <CompositeTransform ScaleX="3" ScaleY="3" TranslateY="50"/>
                        </CheckBox.RenderTransform>
                    </CheckBox>
                    <CheckBox Content="报告" RenderTransformOrigin="0,0">
                        <CheckBox.RenderTransform>
                            <CompositeTransform ScaleX="3" ScaleY="3" TranslateY="100"/>
                        </CheckBox.RenderTransform>
                    </CheckBox>
                    <CheckBox Content="设置" RenderTransformOrigin="0,0">
                        <CheckBox.RenderTransform>
                            <CompositeTransform ScaleX="3" ScaleY="3" TranslateY="150"/>
                        </CheckBox.RenderTransform>
                    </CheckBox>
                </StackPanel>
                <ScrollViewer ZoomMode="Disabled" FontSize="24" HorizontalScrollBarVisibility="Auto" Width="400">
                    <ItemsControl ItemsSource="{Binding Path=Paragraphs}">
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <StackPanel Orientation="Horizontal">
                                        <Image Source="{Binding}"></Image>
                                        <StackPanel>
                                            <TextBlock FontSize="32"></TextBlock>
                                            <TextBlock FontSize="24"></TextBlock>
                                        </StackPanel>
                                        <Button Style="{StaticResource RemoveAppBarButtonStyle}"/>
                                    </StackPanel>
                                    <CheckBox Content="销售" RenderTransformOrigin="0,0">
                                        <CheckBox.RenderTransform>
                                            <CompositeTransform ScaleX="3" ScaleY="3"/>
                                        </CheckBox.RenderTransform>
                                    </CheckBox>
                                    <CheckBox Content="进货" RenderTransformOrigin="0,0">
                                        <CheckBox.RenderTransform>
                                            <CompositeTransform ScaleX="3" ScaleY="3" TranslateY="50"/>
                                        </CheckBox.RenderTransform>
                                    </CheckBox>
                                    <CheckBox Content="报告" RenderTransformOrigin="0,0">
                                        <CheckBox.RenderTransform>
                                            <CompositeTransform ScaleX="3" ScaleY="3" TranslateY="100"/>
                                        </CheckBox.RenderTransform>
                                    </CheckBox>
                                    <CheckBox Content="设置" RenderTransformOrigin="0,0">
                                        <CheckBox.RenderTransform>
                                            <CompositeTransform ScaleX="3" ScaleY="3" TranslateY="150"/>
                                        </CheckBox.RenderTransform>
                                    </CheckBox>
                                </StackPanel>
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                        <ItemsControl.ItemsPanel>
                            <ItemsPanelTemplate>
                                <VirtualizingStackPanel Orientation="Horizontal" />
                            </ItemsPanelTemplate>
                        </ItemsControl.ItemsPanel>
                    </ItemsControl>
                </ScrollViewer>
            </StackPanel>
        </Grid>

    </Grid>
</common:LayoutAwarePage>
